package FlyGame;

import javax.swing.*;
import java.awt.*;

public class MyCloud {
    public int cloudx;
    public int cloudy;

    public MyCloud() {
        this.cloudx = 250;
        this.cloudy = (int) (50 + Math.random() * 100);
    }

    public void paintCloud(Graphics g, JPanel panel) {
        FlyPicture.Cloud.paintIcon(panel, g, this.cloudx, this.cloudy);
    }
}
